cmake_minimum_required(VERSION 3.22)

set(PROJECT_NAME c_proj)
project(${PROJECT_NAME} C)



set(CMAKE_C_STANDARD 11)


#set(BUILD_PATH "/usr/bin/")

#set(CMAKE_C_COMPILER "${BUILD_PATH}arm-linux-gnueabihf-gcc")
#set(CMAKE_CXX_COMPILER "${BUILD_PATH}arm-linux-gnueabihf-g++")

#link_libraries(/usr/lib/x86_64-linux-gnu/)
#add_library(jpeg)


#LINK_LIBRARIES(/usr/lib/x86_64-linux-gnu/libjpeg.so)
set(LIB_PATH "/app/lib/")
#link_libraries(${LIB_PATH}libServo.so)
link_directories(${LIB_PATH})
include_directories("/app/include")
link_libraries(wiringPi)
link_libraries(Servo)
link_libraries(ServoShm)
add_executable(${PROJECT_NAME} main.c)
